home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
gift40b7.zip
/
PRO-T.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-12-07
|
767b
|
43 lines
@echo off
echo off
rem -- pro-t.bat - process "test" archive request - for ProDOOR 3.4
rem -- %1-resultfile, %2 sourcefile
testfile %2 zip lzh gif
if errorlevel == 98 goto cant_handle
if errorlevel == 3 goto gif
if errorlevel == 2 goto lzh
if errorlevel == 1 goto zip
goto end
:gif
giftest %2 >>%1
goto end
:zip
pkunzip -t >>%1 %2
if errorlevel 1 goto error
goto end
:lzh
rem lha 2.11 or later required for test function to work
lha t /v >>%1 %2
if errorlevel 1 goto error
goto end
:pack_error
echo Y|del $$$$ >nul
rmdir $$$$
goto error
:error
echo. >>%1
echo %2 has errors! >>%1
echo %0: Error were detected while processing %2 ! >>%1
goto end
:cant_handle
echo Sorry, %0 does not know how to process %2 ! >>%1
:end